package com.zr.eim.service.impl;

import com.zr.eim.domain.EimDataHistory;
import com.zr.eim.mapper.EimDataHistoryMapper;
import com.zr.eim.service.IEimDataHistoryService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * 疫情历史信息Service业务层处理
 *
 */
@Service
public class EimDataHistoryServiceImpl implements IEimDataHistoryService
{

    @Resource
    private EimDataHistoryMapper eimDataHistoryMapper;

    /**
     * 查询疫情历史信息
     * 需求模块：数据大屏
     */
    @Override
    public List<EimDataHistory> getEimDataHistory(){
        return eimDataHistoryMapper.getEimDataHistory();
    }

    /**
     * 定时更新疫情历史信息
     * 需求模块：数据大屏
     */
    @Override
    public int updateEimDataHistory(){
        return eimDataHistoryMapper.updateEimDataHistory();
    }
}
